import {SearchVO, Template} from "@/typings";
import requestWithToken from "@/utils/request";

export const listTemplate = (searchVO: SearchVO) => {
    return requestWithToken("/template/list", "GET", searchVO);
};
export const deleteTemplate = (id: String) => {
    return requestWithToken("/template/delete", 'GET', {id})
}
export const getTemplate = (id: String) => {
    return requestWithToken("/template/get", 'GET', {id})
}
export const saveTemplate = (data: Template) => {
    return requestWithToken("/template/save", "POST", data)
}